package cn.stylefeng.guns.modular.flowable.mapper;

import cn.stylefeng.guns.modular.flowable.entity.ActIdMembership;
import cn.stylefeng.guns.modular.flowable.model.params.ActIdMembershipParam;
import cn.stylefeng.guns.modular.flowable.model.result.ActIdMembershipResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author gblfy
 * @since 2019-12-20
 */
public interface ActIdMembershipMapper extends BaseMapper<ActIdMembership> {

    /**
     * 根据用户id删除 用户和组中间数据
     *
     * @param userId
     */
    void deleteByUserId(String userId);

    /**
     * 获取列表
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    List<ActIdMembershipResult> customList(@Param("paramCondition") ActIdMembershipParam paramCondition);

    /**
     * 获取map列表
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ActIdMembershipParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    Page<ActIdMembershipResult> customPageList(@Param("page") Page page, @Param("paramCondition") ActIdMembershipParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author gblfy
     * @Date 2019-12-20
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ActIdMembershipParam paramCondition);

}
